<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/9/2
 * Time: 上午10:11
 */
namespace PddWechat\Models\User\Service;


use Dai\Framework\Base\BaseSessionInfo;
use PddWechat\Models\User\Data\BindBankCardData;

class UserBankCardInfo
{

    public function __construct()
    {
        $this->bindBankCardData = new BindBankCardData();
    }

    public function execute($basePageInfo)
    {
        /** @var BaseSessionInfo $sessionData */
        $sessionData = $basePageInfo->sessionInfo;
        $uid = $sessionData->uid;
        return $this->bindBankCardData->selectByUid($uid);
    }
}